package com.itheima.fileIO;

import java.io.File;
import java.io.IOException;

public class fileDemo01 {
    public static void main(String[] args) throws IOException {
        //domo01();
        File file=new File("FileIO\\aaa");
        if (!file.exists()){
            file.mkdir();
        }
        File file2=new File("FileIO\\aaa\\a.txt");
        file2.createNewFile();
    }

    private static void domo01() {
        File file1=new File("F:\\Develop");
        File[] files = file1.listFiles();
        for (File path : files) {
            System.out.println(path);
        }
        System.out.println("=====================");
        File file=new File("a.txt");
        System.out.println(file.getAbsoluteFile());
        System.out.println(file.getPath());
    }
}
